package com.ermao.service;

import com.ermao.dao.EngineMapper;
import com.ermao.pojo.Engine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ermao
 * Date: 2021/12/25 16:59
 */
@Service
public class EngineServiceImpl implements EngineService {

	private EngineMapper engineMapper;

	@Autowired
	public void setWheelMapper(EngineMapper bodyMapper) {
		this.engineMapper = bodyMapper;
	}

	@Override
	public List<Engine> selectAllEngines() {
		return engineMapper.selectList(null);
	}
}
